#{extends 'home.html' /}


<script type="text/javascript" src="@{'/public/javascripts/jquery.validate.js'}"></script> 
	<script type="text/javascript" src="@{'/public/javascripts/jquery.validate.min.js'}"></script> 
	<script type="text/javascript" src="@{'/public/javascripts/validation.js'}"></script> 

#{if flash.success}
		<h2 style="color:GREEN"><img src="@{'public/images/tick-icon.png'}"/>  ${flash.success}</h2>
#{/if}
<h1 class="viewTitle">${requestDraft.name}</h1> 

<div class="viewContent">

<label for="o">Organization:</label>
<a id="o" class="standardLink" href="@{Browse.viewOrganization(requestDraft.entity.organization.id)}">${requestDraft.entity.organization.name}</a><br/>
<label for="e">Entity:</label>
<a  class="standardLink" id="e"href="@{Browse.viewEntity(requestDraft.entity.id)}">${requestDraft.entity.name}</a>

<form id="viewDraftRequest" action="@{ProfileController.editDraftRequest()}">
		
<div class="formEntry"> 

	<div class="formLabel">
	
	<label for="name">Topic Name:<label style="font-size:12px;color:RED">*</label> </label> 
	</div>
	<input type="text" name="name" value = "${requestDraft.name}"/>
	<div class="clear"></div>
	</div>

		
<div class="formEntry"> 

	<div class="formLabel">
	
	<label for="desc">Topic Description:<label style="font-size:12px;color:RED">*</label>  </label>
	</div>
	<textarea id="desc" name="description" cols="80" rows="10" >${requestDraft.description}</textarea>
	<div class="clear"></div>

</div>

			 <input type="hidden" name ="draftRequestId" value="${requestDraft.id}"/>
			<input type="submit" value ="Send your Request" name="postButton"/>
			<input type="submit" value ="Save as draft" name="draftButton"/>
			<input type="submit" value ="Delete draft" name ="deleteButton"/>
			</form>
			
</div>